package StringBuffer_;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class StringBufferMethod {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("hello");
        sb.append(" world");
        System.out.println(sb);
        sb.delete(6,11);
        System.out.println(sb);
        sb.replace(0,6,"worldd");
        System.out.println(sb);
        sb.insert(0,"hello ");
        System.out.println(sb);
    }
}
